<?php
class Integer extends Number implements Comparable {
	/**
	 * The value which the receiver represents.
	 */
	private final $value;
	
	/**
	 * Constant for the maximum {@code int} value, 2<sup>31</sup>-1.
	 */
	public static final $MAX_VALUE = 0x7FFFFFFF;
	
	/**
	 * Constant for the minimum {@code int} value, -2<sup>31</sup>.
	 */
	public static final $MIN_VALUE = 0x80000000;
	
	/**
	 * Constant for the number of bits needed to represent an {@code int} in
	 * two's complement form.
	 *
	 * @since 1.5
	 */
	public static final $SIZE = 32;
	
	/*
           * Progressively smaller decimal order of magnitude that can be represented
           * by an instance of Integer. Used to help compute the String
           * representation.
           */
	private static final $decimalScale = array (1000000000, 100000000, 10000000, 1000000, 100000, 10000, 1000, 100, 10, 1 );
	
	/**
	 * The {@link Class} object that represents the primitive type {@code int}.
	 */
	//public static final Class<Integer> TYPE = (Class<Integer>) new int[0].getClass ().getComponentType ();
	

	// Note: This can't be set to "int.class", since *that* is
	// defined to be "java.lang.Integer.TYPE";
	

	/**
	 * Constructs a new {@code Integer} with the specified primitive integer
	 * value.
	 * 
	 * @param $value
	 * the primitive integer value to store in the new instance.
	 */
	public function __construct($value) {
		$this->value = $value;
	}
	
	/**
	 * Constructs a new {@code Integer} from the specified string.
	 * 
	 * @param string
	 * the string representation of an integer value.
	 * @throws NumberFormatException
	 * if {@code string} can not be decoded into an integer value.
	 * @see #parseInt(String)
	 */
	//public Integer(String string) throws NumberFormatException {
	//    this(parseInt(string));
	//}
	

	public function byteValue() {
		return $this->value;
	}
	
	public static function toHexString($hash) {
		return dechex($hash);
	}
/* (non-PHPdoc)
	 * @see Number::doubleValue()
	 */
	public function doubleValue() {
		// TODO Auto-generated method stub
		
	}

/* (non-PHPdoc)
	 * @see Number::floatValue()
	 */
	public function floatValue() {
		// TODO Auto-generated method stub
		
	}

/* (non-PHPdoc)
	 * @see Number::intValue()
	 */
	public function intValue() {
		// TODO Auto-generated method stub
		
	}

/* (non-PHPdoc)
	 * @see Number::longValue()
	 */
	public function longValue() {
		// TODO Auto-generated method stub
		
	}

/* (non-PHPdoc)
	 * @see Comparable::compareTo()
	 */
	public function compareTo($another) {
		// TODO Auto-generated method stub
		
	}

}
?>